package com.y2.authprj.dao.auth;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.github.pagehelper.PageInfo;
import com.y2.authprj.bean.auth.model.StaffInfo;
import com.y2.authprj.bean.auth.vo.StaffVo;
import com.y2.authprj.exception.BizException;


public interface IStaffDao {
	List<StaffInfo> findAll();
	
	public int addStaff(StaffInfo staffInfo);
	
	public int updateStaff(StaffInfo staffInfo);
	
	public int deleteStaff(int id);
	
	public List<StaffInfo> findByStaff(StaffVo staffVo);
	
	public StaffInfo findById(Integer id);
	
	public int findByStaffNum(String staffNum);
	
	public StaffInfo findByStaffName(@Param("userName") String userName);
	
	
	public int findByStaffNumsint(String staffNum);
	
	public int findByStaffChname(@Param("chnName") String chnName, @Param("surName") String surName);
	
	public int findByPwd(String pwd);
	
	//登录验证
	public int verifyLoginByStaffNumAndPwd(@Param("staffNum") String staffNum, @Param("pwd") String pwd) throws BizException;

	//多条件查询 by辉
	List<StaffInfo> queryByChose(StaffInfo staffInfo);
	
	public int updateIPandTime(StaffInfo staffInfo);
}
